package com.spc.car.data.service.project;

import com.spc.car.data.domain.htgg.xml.node.ContractAttach;
import com.spc.car.data.entity.project.ProjectHtggPublishAttach;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spc.car.data.entity.sys.SysUser;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * <p>
 * 合同公告发布关联附件表 服务类
 * </p>
 *
 * @author 
 * @since 2020-04-14
 */
public interface ProjectHtggPublishAttachService extends IService<ProjectHtggPublishAttach> {

    List<ContractAttach> listAttachByContractUuid(@NotBlank String contractUuid);

    /**
     * 文件上传并保存
     * @param multipartFile
     * @param filePath 保存的路径
     * @param contractUUID
     */
    void upload(MultipartFile multipartFile,
                String filePath,
                String contractUUID,
                SysUser sysUser);
}
